package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "CATALOG")
public class Catalog implements java.io.Serializable {
	
	private static final long serialVersionUID = 201202251532L;
	private String id;
	private String cnName;
	private String enName;
	private String linkUrl;
	private String menuImg;
	private boolean isleaf;
	private Integer sort;
	private String bak;

	// Constructors

	/** default constructor */
	public Catalog() {
	}

	/** minimal constructor */
	public Catalog(String id) {
		this.id = id;
	}

	/** full constructor */
	public Catalog(String id, String cnName, String enName, String linkUrl,
			String menuImg, Boolean isleaf, Integer sort, String bak) {
		this.id = id;
		this.cnName = cnName;
		this.enName = enName;
		this.linkUrl = linkUrl;
		this.menuImg = menuImg;
		this.isleaf = isleaf;
		this.sort = sort;
		this.bak = bak;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 24)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "CN_NAME", length = 200)
	public String getCnName() {
		return this.cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}

	@Column(name = "EN_NAME", length = 200)
	public String getEnName() {
		return this.enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}

	@Column(name = "LINK_URL", length = 200)
	public String getLinkUrl() {
		return this.linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	@Column(name = "MENU_IMG", length = 200)
	public String getMenuImg() {
		return this.menuImg;
	}

	public void setMenuImg(String menuImg) {
		this.menuImg = menuImg;
	}

	@Column(name = "ISLEAF")
	public boolean getIsleaf() {
		return this.isleaf;
	}

	public void setIsleaf(boolean isleaf) {
		this.isleaf = isleaf;
	}

	@Column(name = "SORT")
	public Integer getSort() {
		return this.sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Column(name = "BAK", length = 1000)
	public String getBak() {
		return this.bak;
	}

	public void setBak(String bak) {
		this.bak = bak;
	}

}